package com.ewo.controller;

import com.ewo.entity.ResponseResult;
import com.ewo.entity.Task;
import com.ewo.entity.User;
import com.ewo.service.TaskService;
import com.ewo.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class TaskController {
    @Resource
    private TaskService taskService;
    @Resource
    private UserService userService;
    //查找所有任务信息
    @GetMapping("/findAllTask")
    public ResponseResult findAllTask(){
        List<Task> taskList = taskService.findAllTask();
        return ResponseResult.ok(taskList);
    }


}
